package com.chinapost.po;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Tygxc entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TYGXC", schema = "WDZY")
public class Tygxc implements java.io.Serializable {

	// Fields

	private String cid;
	private Twdry twdry;
	private Tuser tuserByCcreateuserid;
	private Tuser tuserByCmodifyuserid;
	private String cmonth;
	private Double cgz;
	private Double cfl;
	private Double clwxzc;
	private Double cbxqt;
	private Timestamp ccreatedate;
	private Timestamp cmodifydate;

	// Constructors

	/** default constructor */
	public Tygxc() {
	}

	/** minimal constructor */
	public Tygxc(String cid) {
		this.cid = cid;
	}

	/** full constructor */
	public Tygxc(String cid, Twdry twdry, Tuser tuserByCcreateuserid, Tuser tuserByCmodifyuserid, String cmonth, Double cgz, Double cfl, Double clwxzc, Double cbxqt, Timestamp ccreatedate, Timestamp cmodifydate) {
		this.cid = cid;
		this.twdry = twdry;
		this.tuserByCcreateuserid = tuserByCcreateuserid;
		this.tuserByCmodifyuserid = tuserByCmodifyuserid;
		this.cmonth = cmonth;
		this.cgz = cgz;
		this.cfl = cfl;
		this.clwxzc = clwxzc;
		this.cbxqt = cbxqt;
		this.ccreatedate = ccreatedate;
		this.cmodifydate = cmodifydate;
	}

	// Property accessors
	@Id
	@Column(name = "CID", unique = true, nullable = false, length = 36)
	public String getCid() {
		return this.cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CBH")
	public Twdry getTwdry() {
		return this.twdry;
	}

	public void setTwdry(Twdry twdry) {
		this.twdry = twdry;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CCREATEUSERID")
	public Tuser getTuserByCcreateuserid() {
		return this.tuserByCcreateuserid;
	}

	public void setTuserByCcreateuserid(Tuser tuserByCcreateuserid) {
		this.tuserByCcreateuserid = tuserByCcreateuserid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CMODIFYUSERID")
	public Tuser getTuserByCmodifyuserid() {
		return this.tuserByCmodifyuserid;
	}

	public void setTuserByCmodifyuserid(Tuser tuserByCmodifyuserid) {
		this.tuserByCmodifyuserid = tuserByCmodifyuserid;
	}

	@Column(name = "CMONTH", length = 20)
	public String getCmonth() {
		return this.cmonth;
	}

	public void setCmonth(String cmonth) {
		this.cmonth = cmonth;
	}

	@Column(name = "CGZ", precision = 10)
	public Double getCgz() {
		return this.cgz;
	}

	public void setCgz(Double cgz) {
		this.cgz = cgz;
	}

	@Column(name = "CFL", precision = 10)
	public Double getCfl() {
		return this.cfl;
	}

	public void setCfl(Double cfl) {
		this.cfl = cfl;
	}

	@Column(name = "CLWXZC", precision = 10)
	public Double getClwxzc() {
		return this.clwxzc;
	}

	public void setClwxzc(Double clwxzc) {
		this.clwxzc = clwxzc;
	}

	@Column(name = "CBXQT", precision = 10)
	public Double getCbxqt() {
		return this.cbxqt;
	}

	public void setCbxqt(Double cbxqt) {
		this.cbxqt = cbxqt;
	}

	@Column(name = "CCREATEDATE", length = 11)
	public Timestamp getCcreatedate() {
		return this.ccreatedate;
	}

	public void setCcreatedate(Timestamp ccreatedate) {
		this.ccreatedate = ccreatedate;
	}

	@Column(name = "CMODIFYDATE", length = 11)
	public Timestamp getCmodifydate() {
		return this.cmodifydate;
	}

	public void setCmodifydate(Timestamp cmodifydate) {
		this.cmodifydate = cmodifydate;
	}

}